new Vue({
    el: '#app',
    data() {
        return {
            isActive: '',
            form: { // 分页查询条件

            },
            tableData: [{
                Acceptance_Status: "1",
Acceptance_Status_Original: "1",
ConfirmationStatus: "0",
ConfirmationStatus_Original: "0",
Enterprise_Info_SerialNumber: "91410108MA47F33N8K",
Enterprise_Info_SerialNumber_Original: "91410108MA47F33N8K",
Enterprise_Name: "郑州川舟食品有限公司",
Enterprise_Name_Original: "郑州川舟食品有限公司",
GradeID: "N00000000000011",
GradeID_Original: "N00000000000011",
GradeName: "一级",
GradeName_Original: "一级",
OccupiedQuantity: "0",
OccupiedQuantity_Original: "0",
Operation_Datetime: "2025-02-24 15:38:45.064",
Operation_Datetime_Original: "2025-02-24 15:38:45.064",
Operation_ID: "System Operation",
Operation_ID_Original: "System Operation",
Origin: "333",
Origin_Original: "333",
PaymentMethod: "阶段付款",
PaymentMethod_Original: "阶段付款",
Provider: "91410108MA47F33N8K",
Provider_Original: "91410108MA47F33N8K",
QuotationDate: "2025-02-20",
QuotationDate_Original: "2025-02-20",
QuotationID: "N00000000000109",
QuotationID_Original: "N00000000000109",
RemainingQuantity: "6",
RemainingQuantity_Original: "6",
RequestID: "",
RequestID_Original: "",
Row_Status: "0",
Row_Status_Original: "0",
Self_Pickup_Location: "2222",
Self_Pickup_Location_Original: "2222",
Shipping_Method: "面对面自提",
Shipping_Method_Original: "面对面自提",
Show_image: "1739075856519.jpeg",
Show_image_Original: "1739075856519.jpeg",
SupplyQuantity: "6",
SupplyQuantity_Original: "6",
Unit: "",
UnitPrice: "12",
UnitPrice_Original: "12",
Unit_Original: "",
VarietyID: "N00000000000012",
VarietyID_Original: "N00000000000012",
VarietyName: "香菇",
VarietyName_Original: "香菇",
            }],
            total: 0,//总条数
            loading: false,// 节流阀门
            drawer:false,// 更多类别
        }
    },
    beforeCreate() {
        function setRem() {
            const designWidth = 750; // 设计稿宽度（rpx）
            const maxWidth = 540; // 可选：限制最大宽度（如手机端常见值）
            const screenWidth = Math.min(window.innerWidth, maxWidth);
            const scale = screenWidth / designWidth;
            document.documentElement.style.fontSize = scale + 'px';
        }
        setRem();//1rem = 0.5px 对标小程序在 375px 宽的屏幕上，1rpx = 0.5px（因为 750rpx / 375px = 2）
    },
    mounted() {
        let URL = window.location.href;
        this.token = getQueryObject(URL, 'token');
    },
    computed: {

    },
    methods: {
        toPath(url) {//跳转页面
            if (url) {
                window.location.href = `../../${url}.html`;
            } else {
                this.$showToast({
                    title: '暂未开放'
                });
            }
        },
        handleScroll(e) { // 滚动监听
            const { scrollTop, clientHeight, scrollHeight } = e.target;
            if (scrollTop + clientHeight >= scrollHeight && !this.loading) {
                this.loading = true;
                console.log('滚动到底部了');
            }
        }
    },
})
